package com.wl.cloud.system.support.dto.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wl.cloud.core.dto.AbstractBaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 角色表 查询条件
 *
 * @author wanglin
 * @since 2023-09-18
 */
@Data
@Schema(description = "角色表")
public class SysRoleQueryDTO extends AbstractBaseDTO {
    /**
     * 记录ID
     */
    @Schema(description = "记录ID")
    private String id;

    private String name;
    private String code;
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startCreateTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endCreateTime;
}